package aod.android.com.bernay.mine.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import aod.android.com.bernay.R;
import aod.android.com.bernay.base.BernayBaseActivity;
import chen.lion.hilib.view.bind.HiView;

/**
 * @author crated by zhixianuanyang on 2019/4/3 12:21
 * @Email jamesKing0812@gmail.com
 */
public class CenterActivity extends BernayBaseActivity implements View.OnClickListener {

    //账户管理
    @HiView(R.id.rl_accountManager)
    RelativeLayout mAccountManager;

    //产品管理与应用
    @HiView(R.id.rl_managerApp)
    RelativeLayout mManagerApp;

    //开放平台
    @HiView(R.id.rl_openPlatform)
    RelativeLayout mOpenPlatform;

    @Override
    protected int initLayout() {
        return R.layout.activity_service_center;
    }

    @Override
    protected void initData() {
        initTitle(getString(R.string.service_center));
        mAccountManager.setOnClickListener(this);
        mManagerApp.setOnClickListener(this);
        mOpenPlatform.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Bundle bundle = new Bundle();
        switch (v.getId()){
            case R.id.rl_accountManager:
                bundle.putString("title","账户管理");
                goActivity(AccountManagerActivity.class,bundle);
                break;
            case R.id.rl_managerApp:
                bundle.putString("title","产品管理与应用");
                goActivity(AccountManagerActivity.class,bundle);
                break;
            case R.id.rl_openPlatform:
                bundle.putString("title","开放平台");
                goActivity(AccountManagerActivity.class,bundle);
                break;
            default:
                break;
        }
    }
}
